package com.od.service.serviceImpl;

import com.od.entity.Qualification;
import com.od.mapper.QualificationMapper;
import com.od.service.QualificationService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class QualificationServiceImpl implements QualificationService{

    @Autowired
    private QualificationMapper qualificationMapper;

    @Override
    public List<Qualification> getQualificationById(int qualificationResume) {
        return qualificationMapper.selectQualificationById(qualificationResume);
    }

    @Override
    public int addQualification(Qualification qualification) {
        return qualificationMapper.insertQualification(qualification);
    }

    @Override
    public int updateQualificationById(Qualification qualification) {
        return qualificationMapper.updateQualificationById(qualification);
    }

    @Override
    public int deleteQualificationById(int qualificationId) {
        return qualificationMapper.deleteQualificationById(qualificationId);
    }

}
